package com.qingxin.park.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.hibernate.annotations.GenericGenerator;

/**
 * 地块环境记录图片表
 */
@Entity
@Table(name = "provenance_imgs")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class ProvenanceImgs extends com.qingxin.sys.entity.BaseEntity implements
		java.io.Serializable {
	private static final long serialVersionUID = -3393891806983120968L;
	// Fields

	private String id;
	private String proid;
	private String imgName;
	private String imgPath;
	private String imgDesc;
	private String thumb;
	private Integer sort;
	private String createBy;
	private Date createTime;

	// Constructors

	/** default constructor */
	public ProvenanceImgs() {
	}

	
	public ProvenanceImgs(String id, String imgName, String imgPath, String imgDesc, String thumb) {
		this.id = id;
		this.imgName = imgName;
		this.imgPath = imgPath;
		this.imgDesc = imgDesc;
		this.thumb = thumb;
	}


	/** full constructor */
	public ProvenanceImgs(String proid, String imgName, String imgPath,
			String imgDesc, String thumb, Integer sort, String createBy, Date createTime) {
		this.proid= proid;
		this.imgName = imgName;
		this.imgPath = imgPath;
		this.imgDesc = imgDesc;
		this.thumb = thumb;
		this.sort = sort;
		this.createBy = createBy;
		this.createTime = createTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "proid", length = 32)
	public String getProid() {
		return this.proid;
	}

	public void setProid(String proid) {
		this.proid = proid;
	}

	@Column(name = "img_name", length = 200)
	public String getImgName() {
		return this.imgName;
	}

	public void setImgName(String imgName) {
		this.imgName = imgName;
	}

	@Column(name = "img_path", length = 200)
	public String getImgPath() {
		return this.imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	@Column(name = "img_desc", length = 200)
	public String getImgDesc() {
		return imgDesc;
	}

	public void setImgDesc(String imgDesc) {
		this.imgDesc = imgDesc;
	}

	@Column(name = "thumb", length = 200)
	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}


	@Column(name = "sort")
	public Integer getSort() {
		return this.sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@Column(name = "create_by", length = 50)
	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}